<?xml version="1.0" encoding="UTF-8"?>
<OperationMethod xmlns="http://www.opengis.net/gml" 
xmlns:gml="http://www.opengis.net/gml" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.opengis.net/gml ../../../gml/3.1.1/profiles/GridCRSs/1.0.0/gmlGridCRSsProfile.xsd" 
gml:id="grid2dIn3dMethod">
	<!-- Last updated 2007-12-09 -->
	<!-- =============================================== -->
	<methodName>2D Rectified Grid in 3D CRS Method</methodName>
	<methodID>
		<name>urn:ogc:def:method:WCS:1.1:2dGridIn3dCrs</name>
	</methodID>
	<remarks>Method for use by a Coordinate Conversion defining a 2D GridCRS in a 3D GridBaseCRS, based on CV_RectifiedGrid in ISO 19123 so the grid can be rotated and skewed in this GridBaseCRS. </remarks>
	<methodFormula>The reverse direction (from the GridCRS to the GridBaseCRS) shall be as specified by the equations:
	BaseX = origin(1) + offsets(1,1) * GridX + offsets(2,1) * GridY
	BaseY = origin(2) + offsets(1,2) * GridX + offsets(2,2) * GridY
	BaseZ = origin(3) + offsets(1,3) * GridX + offsets(2,3) * GridY
where 
	GridX, GridY are position coordinates in the 2D grid CRS
	BaseX, BaseY, BaseZ are position coordinates in the 3D base CRS
	origin(1), origin(2), origin(3) are the three coordinates of the grid origin position in the 3D base CRS
	offsets(1,1),offsets(1,2), offsets(1,3) are the grid spacings of the first grid axis in the 3D base CRS
	offsets(2,1), offsets(2,2), offsets(2,3) are the grid spacings of the second grid axis in the 3D base CRS

The forward direction (from the GridBaseCRS to the GridCRS) equations are not included here. </methodFormula>
	<sourceDimensions>3</sourceDimensions>
	<targetDimensions>2</targetDimensions>
	<!-- =============================================== -->
	<usesParameter>
		<OperationParameter gml:id="origin3d">
			<parameterName>origin3d</parameterName>
			<parameterID>
				<name>urn:ogc:def:parameter:WCS:1.1:origin3d</name>
			</parameterID>
			<remarks>This parameter shall be encoded as a wcs:Origin element, giving the three origin coordinates in the 3D base CRS of this GridCRS. </remarks>
		</OperationParameter>
	</usesParameter>
	<!-- =============================================== -->
	<usesParameter>
		<OperationParameter gml:id="offsets3d">
			<parameterName>offsets3d</parameterName>
			<parameterID>
				<name>urn:ogc:def:parameter:WCS:1.1:offsets3d</name>
			</parameterID>
			<remarks>This parameter shall be encoded as a wcs:Offsets element, giving the grid offsets in the two grid axes, each in the 3D base CRS relative to the specified origin. This wcs:Offsets shall contain six values, the first three values shall specify the grid offset for the first grid axis, and the second three values shall specify the grid offset for the second grid axis. </remarks>
		</OperationParameter>
	</usesParameter>
</OperationMethod>
